home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2003 May (DVD) / Macworld Resource DVD May 2003.toast / Data / Software / Bonus / Database / mysql-max-3.23.55.sit / mysql-max-3.23.55-apple-darwi.1 / support-files / my-medium.cnf < prev    next >
Encoding:
Text File  |  2003-01-22  |  2.4 KB  |  85 lines  |  [TEXT/ttxt]

  1. # Example mysql config file for medium systems.
  2. #
  3. # This is for a system with little memory (32M - 64M) where MySQL plays
  4. # a important part and systems up to 128M very MySQL is used together with
  5. # other programs (like a web server)
  6. #
  7. # You can copy this file to
  8. # /etc/my.cnf to set global options,
  9. # mysql-data-dir/my.cnf to set server-specific options (in this
  10. # installation this directory is /usr/local/mysql/var) or
  11. # ~/.my.cnf to set user-specific options.
  12. #
  13. # One can in this file use all long options that the program supports.
  14. # If you want to know which options a program support, run the program
  15. # with --help option.
  16.  
  17. # The following options will be passed to all MySQL clients
  18. [client]
  19. #password    = your_password
  20. port        = 3306
  21. socket        = /tmp/mysql.sock
  22.  
  23. # Here follows entries for some specific programs
  24.  
  25. # The MySQL server
  26. [mysqld]
  27. port        = 3306
  28. socket        = /tmp/mysql.sock
  29. skip-locking
  30. set-variable    = key_buffer=16M
  31. set-variable    = max_allowed_packet=1M
  32. set-variable    = table_cache=64
  33. set-variable    = sort_buffer=512K
  34. set-variable    = net_buffer_length=8K
  35. set-variable    = myisam_sort_buffer_size=8M
  36. log-bin
  37. server-id    = 1
  38.  
  39. # Point the following paths to different dedicated disks
  40. #tmpdir        = /tmp/        
  41. #log-update     = /path-to-dedicated-directory/hostname
  42.  
  43. # Uncomment the following if you are using BDB tables
  44. #set-variable    = bdb_cache_size=4M
  45. #set-variable    = bdb_max_lock=10000
  46.  
  47. # Uncomment the following if you are using InnoDB tables
  48. #innodb_data_home_dir = /usr/local/mysql/var/
  49. #innodb_data_file_path = ibdata1:10M:autoextend
  50. #innodb_log_group_home_dir = /usr/local/mysql/var/
  51. #innodb_log_arch_dir = /usr/local/mysql/var/
  52. # You can set .._buffer_pool_size up to 50 - 80 %
  53. # of RAM but beware of setting memory usage too high
  54. #set-variable = innodb_buffer_pool_size=16M
  55. #set-variable = innodb_additional_mem_pool_size=2M
  56. # Set .._log_file_size to 25 % of buffer pool size
  57. #set-variable = innodb_log_file_size=5M
  58. #set-variable = innodb_log_buffer_size=8M
  59. #innodb_flush_log_at_trx_commit=1
  60. #set-variable = innodb_lock_wait_timeout=50
  61.  
  62. [mysqldump]
  63. quick
  64. set-variable    = max_allowed_packet=16M
  65.  
  66. [mysql]
  67. no-auto-rehash
  68. # Remove the next comment character if you are not familiar with SQL
  69. #safe-updates
  70.  
  71. [isamchk]
  72. set-variable    = key_buffer=20M
  73. set-variable    = sort_buffer=20M
  74. set-variable    = read_buffer=2M
  75. set-variable    = write_buffer=2M
  76.  
  77. [myisamchk]
  78. set-variable    = key_buffer=20M
  79. set-variable    = sort_buffer=20M
  80. set-variable    = read_buffer=2M
  81. set-variable    = write_buffer=2M
  82.  
  83. [mysqlhotcopy]
  84. interactive-timeout
  85.